Page({
    data:{
        // tabList:['待支付',"待付款","待付款","待付款"],
        tabList:[
            {id:1001,name:"待支付",content:"待支付的内容"},
            {id:1002,name:"待付款",content:"待付款的内容"},
            {id:1003,name:"待发货",content:"待发货的内容"},
            {id:1004,name:"待收货",content:"待收货的内容"}

        ],
        activeIndex:0
    },
    tabClick(e){
        //接收参数id
        let activeIndex=e.currentTarget.id;
        //把数据渲染到视图层
        this.setData({
            activeIndex:activeIndex
        })
    }
})